package com.shop.cloud.weixin.common.feign;

import cn.binarywang.wx.miniapp.bean.shop.request.shipping.WxMaOrderShippingInfoUploadRequest;
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaOrderShippingInfoBaseResponse;
import com.shop.cloud.common.core.constant.SecurityConstants;
import com.shop.cloud.common.core.constant.ServiceNameConstants;
import com.shop.cloud.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author
 */
@FeignClient(contextId = "feignWxMaOrderShippingService", value = ServiceNameConstants.WX_ADMIN_SERVICE)
public interface FeignWxMaOrderShippingService {

	/**
	 * 发货信息录入接口
	 * @return
	 */
	@PostMapping("/wxmaordershipping/inside/upload/{appId}")
	R<WxMaOrderShippingInfoBaseResponse> upload(@PathVariable("appId") String appId, @RequestBody WxMaOrderShippingInfoUploadRequest request, @RequestHeader(SecurityConstants.FROM) String from);

}
